﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RegisterAccount.aspx.cs" Inherits="RegisterAccount" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <div style="width: 500px; margin: 30px auto">
        <div class="box">
            <div class="box_title">Register new account</div>
            <div class="box_content">


                <table style="line-height: 23px;padding:15px;">
                    <tr>
                        <td style="width: 150px; text-align: right;">Username: </td>
                        <td style="width: 165px">
                            <asp:TextBox ID="txtUsername" runat="server" Width="155px" Height="23px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtUsername" style="color: #FF0000"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="width: 150px; text-align: right;">Password:</td>
                        <td style="width: 165px">
                            <asp:TextBox ID="txtPassword" runat="server" Width="155px" Height="23px" TextMode="Password"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtPassword" style="color: #FF0000"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 150px; text-align: right;">Confirm Password:</td>
                        <td style="width: 165px">
                            <asp:TextBox ID="txtConfirmPassword" runat="server" Width="155px" Height="23px" TextMode="Password"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="*" ControlToValidate="txtConfirmPassword" style="color: #FF0000"></asp:RequiredFieldValidator>
                            &nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Password not match" ControlToCompare="txtPassword" ControlToValidate="txtConfirmPassword"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 150px; text-align: right;">Fullname:</td>
                        <td style="width: 165px">
                            <asp:TextBox ID="txtFullname" runat="server" Width="155px" Height="23px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="txtFullname" style="color: #FF0000"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 150px; text-align: right;">Student Code:</td>
                        <td style="width: 165px">
                            <asp:TextBox ID="txtStudentCode" runat="server" Width="155px" Height="23px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ControlToValidate="txtStudentCode" style="color: #FF0000"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 150px; text-align: right;">Email: </td>
                        <td style="width: 165px">
                            <asp:TextBox ID="txtEmail" runat="server" Width="155px" Height="23px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*" ControlToValidate="txtEmail" style="color: #FF0000"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="Enter Email Format" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>

                    <tr>
                        <td style="width: 150px"></td>
                        <td style="width: 165px">
                            <strong>
                            <asp:Button ID="btnLogin" runat="server" Text="Register" style="font-weight: bold" OnClick="btnLogin_Click" /></strong></td>
                        <td></td>
                    </tr>
                </table>

            </div>
        </div>
    </div>
</asp:Content>

